<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets">
   <h:head id="head">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   </h:head>
   <h:body id="body">
   

	<h1>Select One Menu</h1>
	<h:messages></h:messages>
	<h:form>
	Fecha: 
	<h:inputText value="#{ejemploBean.fecha}">
	<f:convertDateTime pattern="dd-MM-yyyy"></f:convertDateTime>
	</h:inputText>
		<hr></hr>
      <h:selectOneMenu value="#{ejemploBean.valorSeleccionado}">
      <f:selectItems value="#{ejemploBean.listaValores}"/>
      </h:selectOneMenu>
      <hr></hr>
      <h:commandButton value="envia"></h:commandButton>
	</h:form>
      
   </h:body>
</html>